package Connector;

public class Dog extends Animal implements Swim{
    public Dog() {
    }
    public Dog(String name, int age) {
        super(name, age);
    }
    @Override
    public void eat() {
        System.out.println("狗吃骨头");
    }
    @Override
    public void sleep() {
        System.out.println("狗睡觉");
    }
    @Override
    public void swim() {
        System.out.println("狗游泳");
    }
    @Override
    public void happy() {
        System.out.println("狗开心");
    }
    @Override
    public void backstroke() {
        System.out.println("狗背泳");
    }
}
